projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffab61f
)
imx: hab: Make usage of packed attribute consistent
author
Bryan O'Donoghue
<
[email protected]
>
Fri, 9 Mar 2018 13:07:20 +0000
(13:07 +0000)
committer
Stefano Babic
<
[email protected]
>
Sun, 11 Mar 2018 15:00:00 +0000
(16:00 +0100)
commit
cd2d46003ce1
("arm: imx: hab: Add IVT header definitions") declares
struct ivt_header as "__attribute__((packed))".
commit
ed286bc80e9d
("imx: hab: Check if CSF is valid before
authenticating image") declares struct hab_hdr with __packed.
This patch makes the __packed convention consistent.
Signed-off-by: Bryan O'Donoghue <
[email protected]
>
Cc: Utkarsh Gupta <
[email protected]
>
Cc: Breno Lima <
[email protected]
>
Cc: Fabio Estevam <
[email protected]
>
Reviewed-by: Fabio Estevam <
[email protected]
>
arch/arm/include/asm/mach-imx/hab.h
patch
|
blob
|
history
diff --git
a/arch/arm/include/asm/mach-imx/hab.h
b/arch/arm/include/asm/mach-imx/hab.h
index a522cbab896134764bffcd110b79cd2cdd49c3cf..ce9a44dacda2cd558bc8e2d5e12c20c4c8ae19e4 100644
(file)
--- a/
arch/arm/include/asm/mach-imx/hab.h
+++ b/
arch/arm/include/asm/mach-imx/hab.h
@@
-22,11
+22,11
@@
#define IVT_HEADER_V1 0x40
#define IVT_HEADER_V2 0x41
-struct ivt_header {
+struct
__packed
ivt_header {
uint8_t magic;
uint16_t length;
uint8_t version;
-}
__attribute__((packed))
;
+};
struct ivt {
struct ivt_header hdr; /* IVT header above */